package edu.zbtc.sunxd.myapplication0603;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;
import android.widget.Button;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button btn = findViewById(R.id.button);
        btn.setOnClickListener(v -> Toast.makeText(this, "Hello, world!", Toast.LENGTH_SHORT).show());
        Log.d("MainActivity", "onCreate");
    }
}